package com.mes.check.service;


import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.data.provider.Page;
import com.mes.check.dao.iface.ICheckTaskAssignDao;
import com.mes.check.domain.CheckTaskAssign;
import com.mes.common.service.BasicService;
import com.mes.common.util.SysUtil;
import com.mes.task.dao.iface.IOperationTaskDao;
import com.mes.task.dao.iface.IPartTaskDao;
import com.mes.task.manager.iface.IPartTaskManager;

@Service
public class CheckTaskAssignService extends BasicService<CheckTaskAssign> {

	@Autowired
	SysUtil sysUtil;
	@Autowired
	IOperationTaskDao operationTaskDao;
	@Autowired
	IPartTaskDao partTaskDao;
	@Autowired
	IPartTaskManager partTaskManager;
	
	@Autowired
	ICheckTaskAssignDao checkTaskAssignDao;
	
//	@DataProvider
//	public void getMaterialReadyCheckTasks(Page<CheckTask> page)
//			throws Exception {
//		List lst = checkTaskDao.getMaterialReadyCheckTasks("0017", null);
//		System.out.println("aaa");
//	}
	
	@DataProvider
	public void getCheckTaskAssignsByCheckerUid(Page<CheckTaskAssign> page, Map<String, Object> params) throws Exception {
		checkTaskAssignDao.getCheckTaskAssignsByCheckerUid((String)params.get("checkerUid"), page);
	}
	
	
}
